package com.trkj.service.lzs;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trkj.dao.lzs.RecruitprocessDao;

import com.trkj.pojo.Recruitprocess;
import com.trkj.pojo.SalaryAccount;

@Service
public class RecruitprocessService {
	@Autowired
    private RecruitprocessDao recruitprocessDao ;
	   //招聘查询所有
		public  List<Recruitprocess>  Recruitprocess1(){
		   return (List<Recruitprocess>) recruitprocessDao.findAll();
			
		}
	//添加
	public void wan(String reproName,String reproPerson) {
		try {
			Recruitprocess ab= new Recruitprocess();
			ab.setReproName(reproName);
			ab.setReproPerson(reproPerson);
			recruitprocessDao.save(ab);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	 //编辑  
    public   void lzs_Edit(long reproId,String reproName ,String reproPerson) {
    	Recruitprocess edit =recruitprocessDao.findOne(reproId);
   	    edit.setReproName(reproName);
   	    edit.setReproPerson(reproPerson);
   	 recruitprocessDao.save(edit);
    }
    
    public Recruitprocess chun(Long reproId) {
    	return recruitprocessDao.findOne(reproId);

    }
	
}
